<?php /* Smarty version 2.6.20, created on 2011-12-03 00:33:37
         compiled from C:%5CD%5CMarocMall/themes/prestashop/addresses.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'counter', 'C:\\D\\MarocMall/themes/prestashop/addresses.tpl', 49, false),array('function', 'l', 'C:\\D\\MarocMall/themes/prestashop/addresses.tpl', 90, false),array('modifier', 'explode', 'C:\\D\\MarocMall/themes/prestashop/addresses.tpl', 105, false),array('modifier', 'escape', 'C:\\D\\MarocMall/themes/prestashop/addresses.tpl', 109, false),array('modifier', 'intval', 'C:\\D\\MarocMall/themes/prestashop/addresses.tpl', 114, false),)), $this); ?>


<?php if (! isset ( $this->_tpl_vars['multipleAddresses'] )): ?>
	<?php echo $this->_tpl_vars['ignoreList']['0']; ?>

	<?php echo $this->_tpl_vars['ignoreList']['1']; ?>

	<?php echo $this->_tpl_vars['ignoreList']['2']; ?>

	<?php echo $this->_tpl_vars['ignoreList']['3']; ?>

	<?php echo $this->_tpl_vars['ignoreList']['4']; ?>

	<?php echo $this->_tpl_vars['ignoreList']['5']; ?>

	<?php echo $this->_tpl_vars['ignoreList']['6']; ?>

	<?php echo $this->_tpl_vars['ignoreList']['7']; ?>

	<?php echo $this->_tpl_vars['ignoreList']['8']; ?>

	<?php echo $this->_tpl_vars['ignoreList']['9']; ?>
	
	
		<?php if (isset ( $this->_tpl_vars['addresses'] )): ?>
		<?php echo $this->_tpl_vars['address_number']; ?>

		<?php $_from = $this->_tpl_vars['addresses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['address']):
?>
			<?php echo smarty_function_counter(array('start' => 0,'skip' => 1,'assign' => 'address_key_number'), $this);?>

			<?php $_from = $this->_tpl_vars['address']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['address_key'] => $this->_tpl_vars['address_content']):
?>
				<?php if (! in_array ( $this->_tpl_vars['address_key'] , $this->_tpl_vars['ignoreList'] )): ?>
					<?php echo $this->_tpl_vars['multipleAddresses'][$this->_tpl_vars['address_number']]['ordered'][$this->_tpl_vars['address_key_number']]; ?>

					<?php echo $this->_tpl_vars['multipleAddresses'][$this->_tpl_vars['address_number']]['formated'][$this->_tpl_vars['address_key']]; ?>

					<?php echo smarty_function_counter(array(), $this);?>

				<?php endif; ?>
			<?php endforeach; endif; unset($_from); ?>
		<?php echo $this->_tpl_vars['multipleAddresses'][$this->_tpl_vars['address_number']]['object']; ?>

		<?php echo $this->_tpl_vars['address_number']; ?>

		<?php endforeach; endif; unset($_from); ?>
	<?php endif; ?>
<?php endif; ?>

<?php if (! isset ( $this->_tpl_vars['addresses_style'] )): ?>
	<?php echo $this->_tpl_vars['addresses_style']['company']; ?>

	<?php echo $this->_tpl_vars['addresses_style']['vat_number']; ?>

	<?php echo $this->_tpl_vars['addresses_style']['firstname']; ?>

	<?php echo $this->_tpl_vars['addresses_style']['lastname']; ?>

	<?php echo $this->_tpl_vars['addresses_style']['address1']; ?>

	<?php echo $this->_tpl_vars['addresses_style']['address2']; ?>

	<?php echo $this->_tpl_vars['addresses_style']['city']; ?>

	<?php echo $this->_tpl_vars['addresses_style']['country']; ?>

	<?php echo $this->_tpl_vars['addresses_style']['phone']; ?>

	<?php echo $this->_tpl_vars['addresses_style']['phone_mobile']; ?>

	<?php echo $this->_tpl_vars['addresses_style']['alias']; ?>

<?php endif; ?>

<script type="text/javascript">
//<![CDATA[
	<?php echo '
	$(document).ready(function()
	{
		resizeAddressesBox();
	});
	'; ?>

//]]>
</script>

<?php ob_start(); ?><a href="<?php echo $this->_tpl_vars['link']->getPageLink('my-account.php',true); ?>
"><?php echo smartyTranslate(array('s' => 'My account'), $this);?>
</a><span class="navigation-pipe"><?php echo $this->_tpl_vars['navigationPipe']; ?>
</span><?php echo smartyTranslate(array('s' => 'My addresses'), $this);?>
<?php $this->_smarty_vars['capture']['path'] = ob_get_contents(); ob_end_clean(); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<h1><?php echo smartyTranslate(array('s' => 'My addresses'), $this);?>
</h1>
<p><?php echo smartyTranslate(array('s' => 'Please configure the desired billing and delivery addresses to be preselected when placing an order. You may also add additional addresses, useful for sending gifts or receiving your order at the office.'), $this);?>
</p>

<?php if (isset ( $this->_tpl_vars['multipleAddresses'] ) && $this->_tpl_vars['multipleAddresses']): ?>
<div class="addresses">
	<h3><?php echo smartyTranslate(array('s' => 'Your addresses are listed below.'), $this);?>
</h3>
	<p><?php echo smartyTranslate(array('s' => 'Be sure to update them if they have changed.'), $this);?>
</p>
	<?php $this->assign('adrs_style', $this->_tpl_vars['addresses_style']); ?>
	<?php $_from = $this->_tpl_vars['multipleAddresses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['myLoop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['myLoop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['address']):
        $this->_foreach['myLoop']['iteration']++;
?>
		<ul class="address <?php if (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?>last_item<?php elseif (($this->_foreach['myLoop']['iteration'] <= 1)): ?>first_item<?php endif; ?> <?php if (($this->_foreach['myLoop']['iteration']-1) % 2): ?>alternate_item<?php else: ?>item<?php endif; ?>">
			<li class="address_title"><?php echo $this->_tpl_vars['address']['object']['alias']; ?>
</li>
			<?php $_from = $this->_tpl_vars['address']['ordered']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['adr_loop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['adr_loop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['pattern']):
        $this->_foreach['adr_loop']['iteration']++;
?>
				<?php $this->assign('addressKey', ((is_array($_tmp=' ')) ? $this->_run_mod_handler('explode', true, $_tmp, $this->_tpl_vars['pattern']) : explode($_tmp, $this->_tpl_vars['pattern']))); ?>
				<li>
				<?php $_from = $this->_tpl_vars['addressKey']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['word_loop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['word_loop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['key']):
        $this->_foreach['word_loop']['iteration']++;
?>
					<span class="<?php if (isset ( $this->_tpl_vars['addresses_style'][$this->_tpl_vars['key']] )): ?><?php echo $this->_tpl_vars['addresses_style'][$this->_tpl_vars['key']]; ?>
<?php endif; ?>">
						<?php echo ((is_array($_tmp=$this->_tpl_vars['address']['formated'][$this->_tpl_vars['key']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>

					</span>
				<?php endforeach; endif; unset($_from); ?>
				</li>
			<?php endforeach; endif; unset($_from); ?>
			<li class="address_update"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('address.php',true); ?>
?id_address=<?php echo ((is_array($_tmp=$this->_tpl_vars['address']['object']['id'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
" title="<?php echo smartyTranslate(array('s' => 'Update'), $this);?>
"><?php echo smartyTranslate(array('s' => 'Update'), $this);?>
</a></li>
			<li class="address_delete"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('address.php',true); ?>
?id_address=<?php echo ((is_array($_tmp=$this->_tpl_vars['address']['object']['id'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
&amp;delete" onclick="return confirm('<?php echo smartyTranslate(array('s' => 'Are you sure?'), $this);?>
');" title="<?php echo smartyTranslate(array('s' => 'Delete'), $this);?>
"><?php echo smartyTranslate(array('s' => 'Delete'), $this);?>
</a></li>
		</ul>
	<?php endforeach; endif; unset($_from); ?>
	<p class="clear" />
</div>
<?php else: ?>
	<p class="warning"><?php echo smartyTranslate(array('s' => 'No addresses available.'), $this);?>
&nbsp;<a href="<?php echo $this->_tpl_vars['link']->getPageLink('address.php',true); ?>
"><?php echo smartyTranslate(array('s' => 'Add new address'), $this);?>
</a></p>
<?php endif; ?>

<div class="clear address_add"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('address.php',true); ?>
" title="<?php echo smartyTranslate(array('s' => 'Add an address'), $this);?>
" class="button_large"><?php echo smartyTranslate(array('s' => 'Add an address'), $this);?>
</a></div>

<ul class="footer_links">
	<li><a href="<?php echo $this->_tpl_vars['link']->getPageLink('my-account.php',true); ?>
"><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
icon/my-account.gif" alt="" class="icon" /></a><a href="<?php echo $this->_tpl_vars['link']->getPageLink('my-account.php',true); ?>
"><?php echo smartyTranslate(array('s' => 'Back to Your Account'), $this);?>
</a></li>
	<li><a href="<?php echo $this->_tpl_vars['base_dir']; ?>
"><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
icon/home.gif" alt="" class="icon" /></a><a href="<?php echo $this->_tpl_vars['base_dir']; ?>
"><?php echo smartyTranslate(array('s' => 'Home'), $this);?>
</a></li>
</ul>